#ifndef _MY_WIFI_H
#define _MY_WIFI_H

typedef enum WIFI_STATE
{
    WIFI_STAT_INIT,
    WIFI_STAT_CONNECT,
    WIFI_STAT_DISCONNECT,
    WIFI_STAT_SMART,
    WIFI_STAT_SMART_FAIL,
    WIFI_STAT_SMART_SUCCESS,
    WIFI_STAT_MAX
}WIFI_STATE;
#define WIFI_CONNECT_TIMEOUT        10000
#define WIFI_CONNECT_TIMEOUT_PER    500
#define WIFI_SMART_TIMEOUT          30000
#define WIFI_SMART_TIMEOUT_PER      500
void wifi_setup(void);
void wifi_perTask(void *pvParameters);
void wifi_smartTask(void *pvParameters);
void wifi_clear();
WIFI_STATE wifi_getStat();
const char *wifi_get_ssid();
int wifi_setStat(WIFI_STATE stat);
int wifi_is_exist(const char* ssid,char printSw);
#endif





